<?php
error_reporting("E_ALL");ini_set("display_errors", 1);
header("content-Type: application/json; charset=utf-8");
include('function.php');
$url=!empty($_GET['url'])?trim($_GET['url']):'';
$res  = check_status($url);
echo json_encode($res, JSON_UNESCAPED_UNICODE);
?>